package cn.inst.user.domain;

import java.io.Serializable;
import java.util.List;

import javax.management.relation.RoleList;

public class User implements Serializable{
    private Long id;

    private String username;

    private String password;

    private String realname;

    private String headimage;

    public List<Role> getRoleList() {
		return RoleList;
	}

	public void setRoleList(List<Role> roleList) {
		RoleList = roleList;
	}

	private List<Role> RoleList;
    
    @Override
	public String toString() {
		return "User [id=" + id + ", username=" + username + ", password=" + password + ", realname=" + realname
				+ ", headimage=" + headimage + ", RoleList=" + RoleList + ", getRoleList()=" + getRoleList()
				+ ", getId()=" + getId() + ", getUsername()=" + getUsername() + ", getPassword()=" + getPassword()
				+ ", getRealname()=" + getRealname() + ", getHeadimage()=" + getHeadimage() + ", getClass()="
				+ getClass() + ", hashCode()=" + hashCode() + ", toString()=" + super.toString() + "]";
	}

	public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname == null ? null : realname.trim();
    }

    public String getHeadimage() {
        return headimage;
    }

    public void setHeadimage(String headimage) {
        this.headimage = headimage == null ? null : headimage.trim();
    }
}